package com.itheima.redbaby.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.itheima.redbaby.BaseActivity;
import com.itheima.redbaby.R;
import com.itheima.redbaby.utils.PromptManager;
/**
 * 我的优惠券/礼品卡页面(暂未实现完整)
 * @author Gaara
 *
 */
public class MyTicketActivity extends BaseActivity implements OnClickListener {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.myfavorable_ticket_activity);
		myInit();
	}
	/**
	 * 初始化资源
	 */
	private void myInit() {
		TextView head_back_text = (TextView) findViewById(R.id.head_back_text);
		TextView head_add_text = (TextView) findViewById(R.id.head_add_text);
		head_back_text.setOnClickListener(this);
		head_add_text.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		int id = v.getId();
		switch (id) {
		case R.id.head_back_text://返回
			finish();
			break;
		case R.id.head_add_text://添加
			PromptManager.showToast(this, "想多了,亲...");
			break;
		}
	}
}
